<!DOCTYPE html>
<html lang="en" xmlns:wb="http://open.weibo.com/wb">
<head>
    <title>{% block title %}Doraemon{% endblock %}</title>
    <link href="{{ STATIC_URL }}css/bootstrap.css" rel="stylesheet">
    <script src="http://tjs.sjs.sinajs.cn/open/api/js/wb.js?appkey=" type="text/javascript" charset="utf-8"></script>
</head>

<body>
    <div class="navbar navbar-static-top">
      <div class="navbar-inner">
        <div class="container">
<!--
          <a class="btn btn-navbar" data-toggle="collapse" data-target=".nav-collapse">
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
            <span class="icon-bar"></span>
          </a>
-->
          <a class="brand" href="#">Doraemon</a>
          <div class="nav-collapse">
            <ul class="nav">
              <li class="active"><a href="#">Home</a></li>
              <li><a href="{% url polls.views.index %}">Polls</a></li>
              <li><a href="#">Exchange</a></li>
              <li><a href="#">Rank</a></li>
              <li><a href="{% url taggit.views.index %}">Tags</a></li>
<!--
              <li class="dropdown">
              <a href="#" class="dropdown-toggle" data-toggle="dropdown">Dropdown <b class="caret"></b></a>
              <ul class="dropdown-menu">
                <li><a href="#">Action</a></li>
                <li><a href="#">Another action</a></li>
                <li><a href="#">Something else here</a></li>
                <li class="divider"></li>
                <li class="nav-header">Nav header</li>
                <li><a href="#">Separated link</a></li>
                <li><a href="#">One more separated link</a></li>
              </ul>
              </li>
-->
            </ul>
            <ul class="nav pull-right">
              <form class="navbar-search pull-left" action="">
                <input type="text" class="search-query span2" placeholder="Search">
              </form>
              {% if user.is_authenticated %}
                <li><a href="{% url accounts.views.index %}">{{ user.username }}</a></li>
                <li class="divider-vertical"></li>
                <li><a href="{% url accounts.views.logout %}">Logout</a></li>
              {% else %}
                <li><a href="{% url accounts.views.index %}">Guest</a></li>
                <li><a href="{% url accounts.views.login %}">Login</a></li>
                <li><a href="{% url accounts.views.register %}">Register</a></li>
              {% endif %}
              <li><a href="#">Help</a></li>
            </ul>
          </div><!-- /.nav-collapse -->
        </div>
      </div><!-- /navbar-inner -->
    </div><!-- /navbar -->

  <div class="container">
    <div class="row">
      <div class="span8">
        {% block content %}{% endblock %}
      </div>
      <div class="span4">
        <div class="well">
          your name and remaining balance and basic personal information.
        </div>
        <div class="well">
          here are the tags
        </div>
        <div class="well">
          Across all stats.
        </div>
      </div>
    </div>
  </div>

  <!-- footer -->
  <footer>
      <div class="container">
        <p>
          <center>About us. Help. Contacts. copyright 2012</center></p>
      </div>
  </footer>
</body>
</html>
